package com.ssy.lingxi.platform.manage.repository;


import com.ssy.lingxi.platform.manage.entity.content.MemberLabel;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MemberLabelRepository extends JpaRepository<MemberLabel, Long>, JpaSpecificationExecutor<MemberLabel> {

    List<MemberLabel> findAllByMemberIdAndMemberRoleIdAndStatus(Long memberId, Long memberRoleId, Integer status, Sort createTime);

    List<MemberLabel> findAllByMemberIdAndMemberRoleId(Long memberId, Long memberRoleId);
}
